class CreateUserLoginLogs < ActiveRecord::Migration[5.1]
  def change
    create_table :user_login_logs do |t|
      t.references :user, foreign_key: true
      t.string :ip_address
      t.datetime :login_at
      t.integer :login_count, default: 0

      t.timestamps
    end
  end
end
